Skip to content

Commit 7d009ae

Browse files
committed
Roll back to 0.1.0 and fix some build issues
* Rename "build/" to "generator/" * Add "publish" target * Fix setup.py
1 parent 882e3d7 commit 7d009ae

8 files changed

Lines changed: 12 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
.mypy_cache
33
.pytest_cache
44
__pycache__
5+
dist
56
docs/_build
67
venv

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
all: mypy-generate test-generate generate test-import mypy-cdp test-cdp
22

33
generate:
4-
python build/generate.py
4+
python generator/generate.py
55

66
mypy-cdp:
77
mypy cdp/
88

99
mypy-generate:
10-
mypy build/
10+
mypy generator/
11+
12+
publish:
13+
rm -fr dist chrome_devtools_protocol.egg-info
14+
$(PYTHON) setup.py sdist
15+
twine upload dist/*
1116

1217
test-cdp:
1318
pytest test/
1419

1520
test-generate:
16-
pytest build/
21+
pytest generator/
1722

1823
test-import:
1924
python -c 'import cdp; print(cdp.accessibility)'
File renamed without changes.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ inflection
44
mypy
55
sphinx
66
sphinx-rtd-theme
7+
twine

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name='chrome-devtools-protocol',
11-
version='0.2.0-dev',
11+
version='0.1.0',
1212
description='Python type wrappers for Chrome DevTools Protocol (CDP)',
1313
long_description=long_description,
1414
url='https://github.com/HyperionGray/python-chrome-devtools-protocol',
@@ -23,6 +23,6 @@
2323
python_requires='>=3.7',
2424
keywords='chrome devtools protocol cdp',
2525
package_data={'cdp': ['py.typed']},
26-
packages=find_packages(exclude=['build', 'docs', 'examples', 'test']),
26+
packages=find_packages(exclude=['build', 'docs', 'examples', 'generator']),
2727
install_requires=[]
2828
)

0 commit comments

Comments
 (0)