diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 70536f3..a7c30f3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,7 @@ When contributing to this repository, **please first discuss the change you wish First you should configure your local environment to be able to make changes in this package. -1. Fork the `https://github.com/yubarajshrestha/masonite-instant-articles` repo. +1. Fork the `https://github.com/py-package/masonite-instant-articles` repo. 2. Clone that repo into your computer: `git clone http://github.com/your-username/masonite-instant-articles.git`. 3. Checkout the current release branch \(example: `master`\). 4. Run `git pull origin master` to get the current release version. diff --git a/README.md b/README.md index da4fd72..0530afa 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,12 @@

- GitHub Workflow Status + GitHub Workflow Status PyPI Python Version - GitHub release (latest by date including pre-releases) - License - star + GitHub release (latest by date including pre-releases) + License + star Code style: black

diff --git a/config/database.py b/config/database.py deleted file mode 100644 index 091d99f..0000000 --- a/config/database.py +++ /dev/null @@ -1,56 +0,0 @@ -from masonite.environment import LoadEnvironment, env -from masoniteorm.connections import ConnectionResolver - -# Loads in the environment variables when this page is imported. -LoadEnvironment() - -""" -The connections here don't determine the database but determine the "connection". -They can be named whatever you want. -""" -DATABASES = { - "default": env("DB_CONNECTION", "sqlite"), - "sqlite": { - "driver": "sqlite", - "database": env("SQLITE_DB_DATABASE", "masonite.sqlite3"), - "prefix": "", - "log_queries": env("DB_LOG"), - }, - "mysql": { - "driver": "mysql", - "host": env("DB_HOST"), - "user": env("DB_USERNAME"), - "password": env("DB_PASSWORD"), - "database": env("DB_DATABASE"), - "port": env("DB_PORT"), - "prefix": "", - "grammar": "mysql", - "options": { - "charset": "utf8mb4", - }, - "log_queries": env("DB_LOG"), - }, - "postgres": { - "driver": "postgres", - "host": env("DB_HOST"), - "user": env("DB_USERNAME"), - "password": env("DB_PASSWORD"), - "database": env("DB_DATABASE"), - "port": env("DB_PORT"), - "prefix": "", - "grammar": "postgres", - "log_queries": env("DB_LOG"), - }, - "mssql": { - "driver": "mssql", - "host": env("MSSQL_DATABASE_HOST"), - "user": env("MSSQL_DATABASE_USER"), - "password": env("MSSQL_DATABASE_PASSWORD"), - "database": env("MSSQL_DATABASE_DATABASE"), - "port": env("MSSQL_DATABASE_PORT"), - "prefix": "", - "log_queries": env("DB_LOG"), - }, -} - -DB = ConnectionResolver().set_connection_details(DATABASES) diff --git a/setup.py b/setup.py index 37e2b78..c50b014 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html - version='0.0.8', + version='0.1.1', packages=[ 'instant_article', 'instant_article.config', @@ -24,10 +24,10 @@ long_description=long_description, long_description_content_type="text/markdown", # The project's main homepage. - url="https://github.com/yubarajshrestha/masonite-instant-articles", + url="https://github.com/py-package/masonite-instant-articles", # Author details author='Yubaraj Shrestha', - author_email='companion.krish@outlook.com', + author_email='yubaraj@pypackage.com', # Choose your license license='MIT', # If your package should include things you specify in your MANIFEST.in file