Skip to content

Commit

Permalink
v1.3.0rc1 (#6925)
Browse files Browse the repository at this point in the history
* v1.3.0rc1

* .
  • Loading branch information
Borda authored Apr 9, 2021
1 parent 5552503 commit 3baac71
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/CODEOWNERS
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/__info__.py @williamfalcon @borda
8 changes: 4 additions & 4 deletions .github/prepare-nightly_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

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

# get today date
now = datetime.datetime.now()
now_date = now.strftime("%Y%m%d")

print(f"prepare init '{_PATH_INIT}' - replace version by {now_date}")
with open(_PATH_INIT, 'r') as fp:
print(f"prepare init '{_PATH_INFO}' - replace version by {now_date}")
with open(_PATH_INFO, 'r') as fp:
init = fp.read()
init = re.sub(r'__version__ = [\d\.\w\'"]+', f'__version__ = "{now_date}"', init)
with open(_PATH_INIT, 'w') as fp:
with open(_PATH_INFO, 'w') as fp:
fp.write(init)
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
from pytorch_lightning import __info__ as info
except ImportError:
# alternative https://stackoverflow.com/a/67692/4521646
sys.path.append(os.path.join(PATH_ROOT, "pytorch_lightning"))
import info
import __info__ as info

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import time

_this_year = time.strftime("%Y")
__version__ = '1.3.0rc0'
__version__ = '1.3.0rc1'
__author__ = 'William Falcon et al.'
__author_email__ = 'waf2107@columbia.edu'
__license__ = 'Apache-2.0'
Expand Down
2 changes: 1 addition & 1 deletion pytorch_lightning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
import os

from pytorch_lightning.info import ( # noqa: F401
from pytorch_lightning.__info__ import ( # noqa: F401
__author__,
__author_email__,
__copyright__,
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, setup_tools
from pytorch_lightning import __info__ as info, setup_tools
except ImportError:
# alternative https://stackoverflow.com/a/67692/4521646
sys.path.append("pytorch_lightning")
import info
import __info__ as info
import setup_tools

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

0 comments on commit 3baac71

Please sign in to comment.