Skip to content

Commit

Permalink
Update release (facebookresearch#2546)
Browse files Browse the repository at this point in the history
* Update setup.py again.

* Update again.
  • Loading branch information
stephenroller authored Apr 9, 2020
1 parent c4cca92 commit 1da329f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@
# LICENSE file in the root directory of this source tree.


from setuptools import setup, find_packages
import datetime
import sys

from setuptools import setup, find_packages

BUILD = '' # if multiple in one day, use "dev0", "dev1", ...
DATE = datetime.date.today().isoformat().replace('-', '')

if sys.version_info < (3, 6):
sys.exit('Sorry, Python >=3.6 is required for ParlAI.')

with open('README.md', encoding="utf8") as f:
readme = f.read()

with open('LICENSE') as f:
license = f.read()
# strip the header and badges etc
readme = f.read().split('--------------------')[-1]

with open('requirements.txt') as f:
reqs = f.read()
Expand All @@ -24,11 +27,11 @@
if __name__ == '__main__':
setup(
name='parlai',
version='0.1.20200408',
version=f'0.1.{DATE}{BUILD}',
description='Unified platform for dialogue research.',
long_description=readme,
long_description_content_type='text/markdown',
url='http://parl.ai/',
license=license,
python_requires='>=3.6',
packages=find_packages(
exclude=('data', 'docs', 'examples', 'tests', 'parlai_internal',)
Expand Down

0 comments on commit 1da329f

Please sign in to comment.