Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DeepInverse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hailu, Dawit
DeepInverse
Commits
c260b650
Commit
c260b650
authored
Aug 30, 2020
by
Jirka Borovec
Browse files
Options
Downloads
Patches
Plain Diff
update setup
parent
faef5bbf
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
MANIFEST.in
+38
-0
38 additions, 0 deletions
MANIFEST.in
project/__init__.py
+19
-0
19 additions, 0 deletions
project/__init__.py
setup.py
+59
-9
59 additions, 9 deletions
setup.py
with
116 additions
and
9 deletions
MANIFEST.in
0 → 100644
+
38
−
0
View file @
c260b650
# 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*
This diff is collapsed.
Click to expand it.
project/__init__.py
+
19
−
0
View file @
c260b650
"""
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
"""
This diff is collapsed.
Click to expand it.
setup.py
+
59
−
9
View file @
c260b650
#!/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
'
,
],
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment