Skip to content

Commit

Permalink
module -> package (#79)
Browse files Browse the repository at this point in the history
* make package

so that `_version.py` doesn't get written to top-level of `site-packages` dir

* update .gitignore

_version.py path changed
  • Loading branch information
josh-hadley authored Dec 9, 2020
1 parent 151d433 commit d235d05
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ docs/_build/
target/

# scm version
src/_version.py
src/ufonormalizer/_version.py
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include README.md
include LICENSE.txt
recursive-include src/ *.py
recursive-include src/ufonormalizer/ *.py
recursive-include tests/ *.py
recursive-include tests/data/ *.glif
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]

[tool.setuptools_scm]
write_to = 'src/_version.py'
write_to = 'src/ufonormalizer/_version.py'
write_to_template = '__version__ = "{version}"'
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
author_email="[email protected]",
url="https://github.com/unified-font-object/ufoNormalizer",
package_dir={"": "src"},
py_modules=['ufonormalizer', '_version'],
packages={"ufonormalizer"},
entry_points={
'console_scripts': [
"ufonormalizer = ufonormalizer:main",
]
},
use_scm_version={
"write_to": 'src/_version.py',
"write_to": 'src/ufonormalizer/_version.py',
"write_to_template": '__version__ = "{version}"',
},
setup_requires=['setuptools_scm'],
Expand Down
File renamed without changes.

0 comments on commit d235d05

Please sign in to comment.