Skip to content

Commit

Permalink
rename about (#7002)
Browse files Browse the repository at this point in the history
* rename about

* .

* ..
  • Loading branch information
Borda authored Apr 14, 2021
1 parent 745aed0 commit 895bea1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# Testing
/tests/helpers/boring_model.py @williamfalcon @tchaton @borda

/.github/CODEOWNERS @williamfalcon
/README.md @williamfalcon @edenlightning @borda
/setup.py @williamfalcon @borda
/pytorch_lightning/__info__.py @williamfalcon @borda
/.github/CODEOWNERS @williamfalcon
/README.md @williamfalcon @edenlightning @borda
/setup.py @williamfalcon @borda
/pytorch_lightning/__about__.py @williamfalcon @borda
2 changes: 1 addition & 1 deletion .github/prepare-nightly_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# set paths
_PATH_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
_PATH_INFO = os.path.join(_PATH_ROOT, 'pytorch_lightning', '__info__.py')
_PATH_INFO = os.path.join(_PATH_ROOT, 'pytorch_lightning', '__about__.py')

# get today date
now = datetime.datetime.now()
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
SPHINX_MOCK_REQUIREMENTS = int(os.environ.get('SPHINX_MOCK_REQUIREMENTS', True))

try:
from pytorch_lightning import __info__ as info
from pytorch_lightning import __about__ as info
except ImportError:
# alternative https://stackoverflow.com/a/67692/4521646
sys.path.append(os.path.join(PATH_ROOT, "pytorch_lightning"))
import __info__ as info
import __about__ as info

# -- Project documents -------------------------------------------------------

Expand Down
10 changes: 10 additions & 0 deletions pytorch_lightning/__info__.py → pytorch_lightning/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@
- https://pytorch-lightning.readthedocs.io/en/latest
- https://pytorch-lightning.readthedocs.io/en/stable
"""

__all__ = [
"__author__",
"__author_email__",
"__copyright__",
"__docs__",
"__homepage__",
"__license__",
"__version__",
]
10 changes: 1 addition & 9 deletions pytorch_lightning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@
import logging
import os

from pytorch_lightning.__info__ import ( # noqa: F401
__author__,
__author_email__,
__copyright__,
__docs__,
__homepage__,
__license__,
__version__,
)
from pytorch_lightning.__about__ import * # noqa: F401 F403

_root_logger = logging.getLogger()
_logger = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
from setuptools import find_packages, setup

try:
from pytorch_lightning import __info__ as info, setup_tools
from pytorch_lightning import __about__ as info, setup_tools
except ImportError:
# alternative https://stackoverflow.com/a/67692/4521646
sys.path.append("pytorch_lightning")
import __info__ as info
import __about__ as info
import setup_tools

# https://packaging.python.org/guides/single-sourcing-package-version/
Expand Down

0 comments on commit 895bea1

Please sign in to comment.