Skip to content

Commit

Permalink
Install dataclasses only for python <= 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
joowani committed Feb 2, 2021
1 parent 09b74a7 commit 94a134c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi-upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine setuptools-scm[toml]
pip install setuptools wheel twine setuptools_scm[toml]
- name: Build distribution
run: python setup.py sdist bdist_wheel
- name: Publish to PyPI Test
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,5 @@ dmypy.json
# Intellij
.idea/

# setuptools-scm
# setuptools_scm
colorpedia/version.py
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ Install via [pip](https://pip.pypa.io):
pip install colorpedia
```

The `color` command should now be accessible:
For conda users:

```shell
conda install colorpedia -c conda-forge
```

After installation you can use the `color` command:

```shell
color --help
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use_scm_version=True,
setup_requires=["setuptools_scm"],
install_requires=[
"dataclasses",
"dataclasses>=0.6; python_version < '3.7'",
"fire>=0.3.1",
"setuptools>=42",
"setuptools_scm[toml]>=3.4",
Expand Down

0 comments on commit 94a134c

Please sign in to comment.