-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7665607
commit 0d673fb
Showing
10 changed files
with
104 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
exclude: | | ||
(?x)^( | ||
versioneer\.py| | ||
etuples/_version\.py| | ||
doc/.*| | ||
bin/.* | ||
)$ | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.4 | ||
hooks: | ||
- id: flake8 | ||
exclude: | | ||
(?x)^( | ||
versioneer\.py| | ||
etuples/_version\.py| | ||
doc/.*| | ||
bin/.* | ||
)$ | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.5.2 | ||
hooks: | ||
- id: isort | ||
exclude: | | ||
(?x)^( | ||
versioneer\.py| | ||
etuples/_version\.py| | ||
doc/.*| | ||
bin/.* | ||
)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,11 +133,22 @@ Using `pip`: | |
pip install etuples | ||
``` | ||
|
||
To install from source: | ||
### Development | ||
|
||
First obtain the project source: | ||
```bash | ||
git clone [email protected]:pythological/etuples.git | ||
cd etuples | ||
pip install -r requirements.txt | ||
``` | ||
|
||
Create a virtual environment and install the development dependencies: | ||
```bash | ||
$ pip install -r requirements.txt | ||
``` | ||
|
||
Set up `pre-commit` hooks: | ||
|
||
```bash | ||
$ pre-commit install --install-hooks | ||
``` | ||
|
||
Tests can be run with the provided `Makefile`: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
from .core import etuple | ||
from .dispatch import etuplize, apply, rator, rands, term, operator, arguments | ||
|
||
from ._version import get_versions | ||
from .core import etuple | ||
from .dispatch import apply, arguments, etuplize, operator, rands, rator, term | ||
|
||
__version__ = get_versions()["version"] | ||
del get_versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#!/usr/bin/env python | ||
import versioneer | ||
|
||
from os.path import exists | ||
|
||
from setuptools import setup | ||
|
||
import versioneer | ||
|
||
setup( | ||
name="etuples", | ||
version=versioneer.get_version(), | ||
|
@@ -13,7 +14,10 @@ | |
maintainer="Brandon T. Willard", | ||
maintainer_email="[email protected]", | ||
packages=["etuples"], | ||
install_requires=["cons", "multipledispatch",], | ||
install_requires=[ | ||
"cons", | ||
"multipledispatch", | ||
], | ||
long_description=open("README.md").read() if exists("README.md") else "", | ||
long_description_content_type="text/markdown", | ||
python_requires=">=3.6", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters