# skip to next iteration if comment or empty line if line.startswith('#') or line == '' or line.startswith( 'http') or line.startswith('git'): continue # add line to requirements requirements.append(line) return requirements if sys.argv[-1] == 'publish': # delete any *.pyc, *.pyo and __pycache__ os.system('find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf') os.system("python setup.py sdist bdist_wheel") os.system("twine upload -s dist/*") os.system("rm -rf dist build") args = {'version': get_version()} print("You probably want to also tag the version now:") print(" git tag -a %(version)s -m 'version %(version)s'" % args) print(" git push --tags") sys.exit() setup( name='django-freeradius', version=get_version(), license='GPL3', author='Fiorella De Luca', author_email='*****@*****.**', description= 'Django reusable app that provides an admin interface to a freeradius database', long_description=open('README.rst').read(), url='https://github.com/openwisp/django-freeradius',
# The master toctree document. master_doc = 'index' # General information about the project. project = 'django-freeradius' copyright = '2017, Fiorella De Luca' author = 'Fiorella De Luca' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # The short X.Y version. version = '{0}.{1}'.format(VERSION[0], VERSION[1]) # The full version, including alpha/beta/rc tags. release = get_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = None # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This patterns also effect to html_static_path and html_extra_path exclude_patterns = [] # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx'