Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
automatically generate date suffix for dev versions (#1314)
Browse files Browse the repository at this point in the history
  • Loading branch information
szha committed Aug 25, 2020
1 parent 3b14d69 commit dca17ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
from datetime import datetime
import io
import os
import re
Expand Down Expand Up @@ -26,6 +27,10 @@ def find_version(*file_paths):

VERSION = find_version('src', 'gluonnlp', '__init__.py')

if VERSION.endswith('dev'):
VERSION = VERSION + datetime.today().strftime('%Y%m%d')


requirements = [
'numpy',
'sacremoses>=0.0.38',
Expand Down
2 changes: 1 addition & 1 deletion src/gluonnlp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.0.0'
__version__ = '1.0.0.dev'
from . import base
from . import data
from . import models
Expand Down

0 comments on commit dca17ee

Please sign in to comment.