Skip to content

Commit 289e248

Browse files
committed
build project files from templates
1 parent 3d12cc3 commit 289e248

File tree

6 files changed

+19
-27
lines changed

6 files changed

+19
-27
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ matrix:
2020
- pip install --upgrade coverage pytest
2121
- pip install .
2222
script:
23-
- coverage run --source {{ PROJECT }} -m py.test
23+
- coverage run --source fdiff -m py.test
2424
- coverage report -m
2525
after_success:
2626
- bash <(curl -s https://codecov.io/bash)

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
all: install
22

33
black:
4-
black lib/{{ PROJECT }}/*.py
4+
black lib/fdiff/*.py
55

66
clean:
77
- rm dist/*.whl dist/*.tar.gz dist/*.zip
@@ -24,20 +24,20 @@ install-user:
2424
test: test-lint test-type-check test-unit
2525

2626
test-coverage:
27-
coverage run --source {{ PROJECT }} -m py.test
27+
coverage run --source fdiff -m py.test
2828
coverage report -m
2929
# coverage html
3030

3131
test-lint:
32-
flake8 --ignore=E501,W50 lib/{{ PROJECT }}
32+
flake8 --ignore=E501,W50 lib/fdiff
3333

3434
test-type-check:
35-
pytype lib/{{ PROJECT }}
35+
pytype lib/fdiff
3636

3737
test-unit:
3838
tox
3939

4040
uninstall:
41-
pip3 uninstall --yes {{ PROJECT }}
41+
pip3 uninstall --yes fdiff
4242

4343
.PHONY: all black clean dist-build dist-push install install-dev install-user test test-lint test-type-check test-unit uninstall

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
## {{PROJECT}}
2-
3-
### How to Use the Project Template Files
4-
5-
1. Click the `Use This Template` button above to copy the entire repository to a new Github repository.
6-
2. Edit the `project.toml` configuration file in the root of the repository
7-
3. Run `python3 build.py` in the root of the repository
8-
4. Delete the `project.toml` and `build.py` files following your build
9-
1+
## fdiff
File renamed without changes.

lib/PROJECT/__main__.py renamed to lib/fdiff/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55
import argparse
66

7-
from {{ PROJECT }} import __version__
7+
from fdiff import __version__
88

99

1010
def main(): # pragma: no cover
@@ -16,9 +16,9 @@ def run(argv):
1616
# argparse command line argument definitions
1717
# ===========================================================
1818
parser = argparse.ArgumentParser(
19-
description="{{ DESCRIPTION }}"
19+
description="A font OpenType table diff tool"
2020
)
2121
parser.add_argument(
22-
"--version", action="version", version="{{ PROJECT }} v{}".format(__version__)
22+
"--version", action="version", version="fdiff v{}".format(__version__)
2323
)
2424
args = parser.parse_args(argv)

setup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
from setuptools import setup, find_packages
55

66
# Package meta-data.
7-
NAME = "{{ PROJECT }}"
8-
DESCRIPTION = "{{ DESCRIPTION }}"
9-
LICENSE = "{{ LICENSE }}"
10-
URL = "{{ URL }}"
11-
EMAIL = "{{ EMAIL }}"
12-
AUTHOR = "{{ AUTHOR }}"
13-
REQUIRES_PYTHON = ">={{ PYTHON }}"
7+
NAME = "fdiff"
8+
DESCRIPTION = "A font OpenType table diff tool"
9+
LICENSE = "Apache License v2.0"
10+
URL = "https://github.com/source-foundry/fdiff"
11+
EMAIL = "chris@sourcefoundry.org"
12+
AUTHOR = "Source Foundry Authors"
13+
REQUIRES_PYTHON = ">=3.6.0"
1414

1515
INSTALL_REQUIRES = [""]
1616
# Optional packages
@@ -25,7 +25,7 @@
2525

2626
# Version
2727
main_namespace = {}
28-
version_fp = os.path.join(this_file_path, "lib", "{{ PROJECT }}", "__init__.py")
28+
version_fp = os.path.join(this_file_path, "lib", "fdiff", "__init__.py")
2929
try:
3030
with io.open(version_fp) as v:
3131
exec(v.read(), main_namespace)
@@ -66,7 +66,7 @@
6666
install_requires=INSTALL_REQUIRES,
6767
extras_require=EXTRAS_REQUIRES,
6868
python_requires=REQUIRES_PYTHON,
69-
entry_points={"console_scripts": ["{{ PROJECT }} = {{ PROJECT }}.__main__:main"]},
69+
entry_points={"console_scripts": ["fdiff = fdiff.__main__:main"]},
7070
classifiers=[
7171
"Development Status :: 4 - Beta",
7272
"Environment :: Console",

0 commit comments

Comments
 (0)