# Copyright (c) 2015 Presslabs SRL # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # -*- encoding: utf-8 -*- """ Python setup file for the silver app. In order to register your app at pypi.python.org, create an account at pypi.python.org and login, then register your new app like so: python setup.py register If your name is still free, you can now make your first release but first you should check if you are uploading the correct files: python setup.py sdist Inspect the output thoroughly. There shouldn't be any temp files and if your app includes staticfiles or templates, make sure that they appear in the list. If something is wrong, you need to edit MANIFEST.in and run the command again. If all looks good, you can make your first release: python setup.py sdist upload For new releases, you need to bump the version number in silver/__init__.py and re-run the above command. For more information on creating source distributions, see http://docs.python.org/2/distutils/sourcedist.html """ import os from setuptools import setup, find_packages install_requires = list(filter( bool, [line.split('#')[0].strip() for line in open("requirements/common.txt").readlines() if not any([line.startswith('https://'), line.startswith('http://')])] )) def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' setup( name="django-silver", version='0.11.1', description=read('DESCRIPTION'), long_description=read('README.rst'), license='Apache 2.0', platforms=['OS Independent'], keywords='django, app, reusable, billing, invoicing, api', author='Presslabs', author_email='ping@presslabs.com', url='http://www.presslabs.com/silver/', packages=find_packages(), extras_require={ 'dev': 'Faker' }, include_package_data=True, install_requires=install_requires, entry_points={"pytest11": ["django-silver = silver.fixtures.pytest_fixtures"]}, classifiers=[ 'Environment :: Web Environment', 'Framework :: Django :: 3.1', 'Framework :: Django :: 3.2', 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8' ] )