Skip to content
Snippets Groups Projects
Commit c260b650 authored by Jirka Borovec's avatar Jirka Borovec
Browse files

update setup

parent faef5bbf
Branches
No related tags found
No related merge requests found
# Manifest syntax https://docs.python.org/2/distutils/sourcedist.html
graft wheelhouse
recursive-exclude __pycache__ *.py[cod] *.orig
# Include the README and CHANGELOG
include *.md
recursive-include research_mnist *.md
# Include the license file
include LICENSE
exclude *.sh
exclude *.toml
exclude *.svg
# exclude tests from package
recursive-exclude tests *
recursive-exclude site *
exclude tests
# Exclude the documentation files
recursive-exclude docs *
exclude docs
# Include the Requirements
include requirements.txt
# Exclude build configs
exclude *.yml
prune .git
prune .github
prune .circleci
prune notebook*
prune temp*
prune test*
prune benchmark*
"""Root package info."""
__version__ = '0.0.0'
__author__ = 'PyTorch Lightning et al.'
__author_email__ = 'name@pytorchlightning.ai'
__license__ = 'TBD'
__copyright__ = 'Copyright (c) 2020-2020, %s.' % __author__
# TODO: edit this page link
__homepage__ = 'https://github.com/PyTorchLightning/pytorch-lightning-conference-seed'
__docs__ = "Research Seed."
__long_doc__ = """
What is it?
-----------
This is starter project template which shall simplify initial steps for each new PL project...
Except the implemented sections:
- sample package
- setting CI
"""
#!/usr/bin/env python #!/usr/bin/env python
import os
# Always prefer setuptools over distutils
from setuptools import setup, find_packages from setuptools import setup, find_packages
# https://packaging.python.org/guides/single-sourcing-package-version/
# http://blog.ionelmc.ro/2014/05/25/python-packaging/
PATH_ROOT = os.path.dirname(__file__)
import project # noqa: E402
def load_requirements(path_dir=PATH_ROOT, comment_char='#'):
with open(os.path.join(path_dir, 'requirements.txt'), 'r') as file:
lines = [ln.strip() for ln in file.readlines()]
reqs = [ln[:ln.index(comment_char)] if comment_char in ln else ln for ln in lines]
reqs = [ln for ln in reqs if ln]
return reqs
# https://packaging.python.org/discussions/install-requires-vs-requirements /
# keep the meta-data here for simplicity in reading this file... it's not obvious
# what happens and to non-engineers they won't know to look in init ...
# the goal of the project is simplicity for researchers, don't want to add too much
# engineer specific practices
setup( setup(
name='project', name='project',
version='0.0.0', version=project.__version__,
description='Describe Your Cool Project', description=project.__docs__,
author='', author=project.__author__,
author_email='', author_email=project.__author_email__,
# REPLACE WITH YOUR OWN GITHUB PROJECT LINK url=project.__homepage__,
url='https://github.com/PyTorchLightning/pytorch-lightning-conference-seed', download_url='https://github.com/PyTorchLightning/pytorch-lightning-conference-seed',
install_requires=['pytorch-lightning'], license=project.__license__,
packages=find_packages(), packages=find_packages(exclude=['tests', 'docs']),
)
long_description=project.__long_doc__,
long_description_content_type='text/markdown',
include_package_data=True,
zip_safe=False,
keywords=['deep learning', 'pytorch', 'AI'],
python_requires='>=3.6',
setup_requires=[],
install_requires=load_requirements(PATH_ROOT),
classifiers=[
'Environment :: Console',
'Natural Language :: English',
# How mature is this project? Common values are
# 3 - Alpha, 4 - Beta, 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
# Pick your license as you wish
# 'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment