Skip to content

Commit

Permalink
Add twine PyPI instructions.
Browse files Browse the repository at this point in the history
Add enum34 requirement

version 0.1.1

PiperOrigin-RevId: 204213584
  • Loading branch information
sguada committed Jul 11, 2018
1 parent 83743ec commit fc2c1cd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,20 @@ be found in the [user guide].
### 1. Setup


Install Gin:
Install Gin with pip:

```shell
pip install gin-config
```

Install Gin from source:

```shell
git clone https://github.com/google/gin-config
cd gin-config
python -m setup.py install
```

Import Gin (without TensorFlow functionality):

```python
Expand Down
10 changes: 9 additions & 1 deletion docs/walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,20 @@ be found in the [user guide].
### 1. Setup


Install Gin:
Install Gin with pip:

```shell
pip install gin-config
```

Install Gin from source:

```shell
git clone https://github.com/google/gin-config
cd gin-config
python -m setup.py install
```

Import Gin (without TensorFlow functionality):

```python
Expand Down
1 change: 1 addition & 0 deletions gin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# limitations under the License.

"""Init file for Gin."""
__version__ = '0.1.1'

from gin.config import bind_parameter
from gin.config import clear_config
Expand Down
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import codecs
from os import path
import gin
from setuptools import find_packages
from setuptools import setup

Expand All @@ -32,18 +33,20 @@
with codecs.open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

install_requires = ['six >= 1.10.0', 'enum34;python_version<"3.4"']
test_requirements = ['six >= 1.10.0', 'absl-py >= 0.1.6']

setup(
name='gin-config',
version='0.1',
version=gin.__version__,
include_package_data=True,
packages=find_packages(exclude=['docs']), # Required
package_data={'testdata': ['testdata/*.gin']},
install_requires=['six >= 1.10.0'],
install_requires=install_requires,
extras_require={ # Optional
'tf': ['tensorflow >= 1.6'],
},
tests_require=['six >= 1.10.0', 'absl-py >= 0.1.6'],
tests_require=test_requirements,
description='Gin-config: a lightweight configuration library for Python',
long_description=long_description,
url='https://github.com/google/gin-config', # Optional
Expand Down

0 comments on commit fc2c1cd

Please sign in to comment.