diff --git a/setup.py b/setup.py index 2e7bb42..f8c87ac 100644 --- a/setup.py +++ b/setup.py @@ -1,44 +1,13 @@ -import os -from setuptools import setup, find_packages, Command +from setuptools import setup, find_packages from pathlib import Path this_directory = Path(__file__).parent long_description = (this_directory / "README.md").read_text() -class BuildCommand(Command): - description = 'Build the package' - user_options = [] - - def initialize_options(self): - pass - - def finalize_options(self): - pass - - def run(self): - os.system('python setup.py sdist') - - -class PublishCommand(Command): - description = 'Publish the package to PyPI' - user_options = [('version=', 'v', 'version number of the package to be uploaded')] - version = None - - def initialize_options(self): - pass - - def finalize_options(self): - if self.version is None: - raise Exception("Version number is required. Use --version=") - - def run(self): - os.system(f"twine upload ./dist/django-appwrite-{self.version}.tar.gz") - - setup( name='django-appwrite', - version='1.5.0', + version='1.5.1', description='Django Middleware to authenticate users with Appwrite', long_description=long_description, long_description_content_type='text/markdown', @@ -47,7 +16,6 @@ def run(self): install_requires=['appwrite', 'django', 'djangorestframework'], license='MIT', author='Yusuf Khasbulatov', - readme='README.md', keywords="appwrite auth django", url='https://github.com/khashashin/django-appwrite', project_urls={ @@ -69,8 +37,4 @@ def run(self): "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10" ], - cmdclass={ - 'build': BuildCommand, - 'publish': PublishCommand, - }, )