Skip to content

Commit

Permalink
update and rename to canonical name
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed May 31, 2019
1 parent 360b30d commit fe31493
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
*.egg-info
*.pyc
.cache
.tox
.coverage
.coverage.*
*.pyc
*.egg-info
.tox
dist
htmlcov
pip-wheel-metadata
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/ambv/black
rev: 18.9b0
rev: 19.3b0
hooks:
- id: black
language_version: python3.7
Expand All @@ -9,24 +9,24 @@ repos:
types: []

- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.5
rev: 3.7.7
hooks:
- id: flake8
language_version: python3.7

- repo: https://github.com/asottile/seed-isort-config
rev: v1.5.0
rev: v1.9.1
hooks:
- id: seed-isort-config

- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.4
rev: v4.3.20
hooks:
- id: isort
language_version: python3.7

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
15 changes: 12 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@

###############################################################################

NAME = "environ_config"
NAME = "environ-config"
KEYWORDS = ["app", "config", "env", "cfg"]
PROJECT_URLS = {
"Bug Tracker": "https://github.com/hynek/environ-config/issues",
"Source Code": "https://github.com/hynek/environ-config",
}

META_PATH = os.path.join("src", "environ", "__init__.py")
CLASSIFIERS = [
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
Expand Down Expand Up @@ -66,7 +71,9 @@ def read(*parts):
try:
META_PATH
except NameError:
META_PATH = os.path.join(HERE, "src", NAME, "__init__.py")
META_PATH = os.path.join(
HERE, "src", NAME.replace("-", "_"), "__init__.py"
)
finally:
META_FILE = read(META_PATH)

Expand Down Expand Up @@ -105,13 +112,15 @@ def find_meta(meta):
description=find_meta("description"),
license=find_meta("license"),
url=URI,
project_urls=PROJECT_URLS,
version=VERSION,
author=find_meta("author"),
author_email=find_meta("email"),
maintainer=find_meta("author"),
maintainer_email=find_meta("email"),
keywords=KEYWORDS,
long_description=LONG,
long_description_content_type="text/x-rst",
packages=PACKAGES,
package_dir={"": "src"},
zip_safe=False,
Expand Down

0 comments on commit fe31493

Please sign in to comment.