Skip to content

Commit f9eb145

Browse files
author
Bhavye Mathur
committed
v1.1.319a25
* Fixed bug with goopylib installing incorrectly using pip
1 parent 8a0c2d8 commit f9eb145

File tree

10 files changed

+79
-40
lines changed

10 files changed

+79
-40
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.idea/
22
.vs/
3-
dist/
43
build/
54
**/goopylib.egg-info/
65
*.log

MANIFEST.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
graft goopylib*
1+
graft goopylib
2+
global-include *.pyd
3+
global-include *.so
4+
recursive-include goopylib *.pyd

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ https://stackoverflow.com/questions/63978464/error-when-compiling-cpython-cannot
177177
There are probably still a lot of bugs in the release version, but I moved onto Version 1.1 because I started working
178178
on converting goopylib code to Cython & C and also building a Sound Engine for goopylib 1.2
179179

180+
#### 1.1.319-alpha25 27th May 2021 - 24,385 lines of code
181+
182+
* Fixed bug with goopylib installing incorrectly using pip
183+
180184
#### 1.1.318-alpha25 5th May - 25th May 2021 - 25,061 lines of code
181185

182186
* Fixed bug with the `Rectangle` class's `copy()` function not creating a copy of the position lists and just creating a
495 KB
Binary file not shown.

dist/goopylib-1.1.319a1.tar.gz

443 KB
Binary file not shown.

goopylib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from goopylib.Window import Window
99

1010
__all__ = ['Window', 'util', 'styles', 'constants', 'colours']
11-
__version__ = "1.1.318a25"
11+
__version__ = "1.1.319a25"
1212

1313
from platform import system as platform_system
1414
if platform_system() == "Windows":

goopylib/setup_extensions.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,9 @@
99
1010
Tested on Python 3.7.9 (Windows) and Python 3.8.6 (MacOSX)
1111
12-
pip install twine
1312
pip install --upgrade setuptools
14-
1513
pip install build
1614
17-
CREATING RELEASES-------------------------------------------------------------------------------------------------------
18-
- Update README.md version number
19-
- Update setup.cfg version number
20-
- Update goopylib/__init__.py __version__ variable
21-
- Run setup_extensions.py and build goopylib .pyd C extensions
22-
- Test all Example python files, run goopylib_tests.py and test functions on Windows
23-
- Run goopylib_tests.py countlines() function and update README.md with line count
24-
- Push to GitHub, pull from MacOS computer
25-
- Run setup_extensions.py and build goopylib .so C extensions
26-
- Test all Example python files, run goopylib_tests.py and test functions on MacOS
27-
- Push files to GitHub
28-
- Create GitHub Release
29-
- Build goopylib Release
30-
- Upload goopylib Release on PyPi
31-
- Test goopylib installation on Windows
32-
- Test goopylib installation on MacOS
33-
34-
To create release: python setup_extensions.py sdist bdist_wheel
35-
sdist bdist_wheel
36-
37-
To check release: twine check dist/*
38-
To upload release: twine upload dist/*
39-
4015
BUILDING EXTENSIONS-----------------------------------------------------------------------------------------------------
4116
To build Extension: python setup_extensions.py build -c mingw32
4217
build -c mingw32

goopylib_tests.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ def countlines(start, lines=0, _header=True, _begin_start=None):
1414
file = os.path.join(start, file)
1515
if os.path.isfile(file):
1616
if any(file.endswith(end) for end in (".py", ".c", ".h", ".cfg", ".toml", ".in")):
17-
with open(file, 'r') as f:
18-
newlines = len(f.readlines())
19-
lines += newlines
17+
if not any(folder in file for folder in ("build", "Examples")):
18+
with open(file, 'r') as f:
19+
newlines = len(f.readlines())
20+
lines += newlines
2021

21-
print('{:>10} |{:>10} | {}'.format(newlines, lines, file))
22+
print('{:>10} |{:>10} | {}'.format(newlines, lines, file))
2223

2324
for file in os.listdir(start):
2425
file = os.path.join(start, file)
@@ -741,7 +742,7 @@ def test_all_examples():
741742
print()
742743
"""
743744

744-
test_all_functions()
745-
test_all_examples()
745+
# test_all_functions()
746+
# test_all_examples()
746747

747-
# countlines(".")
748+
countlines(".")

setup.cfg

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
[metadata]
22
name = goopylib
3-
version = 1.1.318a25
3+
version = 1.1.319a1
44
author = Bhavye Mathur
55
author_email = bhavyemathur@gmail.com
66

7+
maintainer = Bhavye Mathur
8+
maintainer_email = bhavyemathur@gmail.com
9+
710
description = A simple-yet-powerful 2D graphics framework built on top of Tkinter capable of creating good-looking, modern GUIs, games, and animations.
811
long_description = file: README.md
912
long_description_content_type = text/markdown
1013
url = https://github.com/BhavyeMathur/goopylib
1114

12-
download_url = https://github.com/BhavyeMathur/goopylib/archive/v1.1.282-alpha.tar.gz
15+
license = MIT License
16+
17+
download_url = https://github.com/BhavyeMathur/goopylib/archive/v1.1.318-alpha.tar.gz
1318
project_urls =
1419
Bug Tracker = https://github.com/BhavyeMathur/goopylib/issues
1520
Documentation = https://github.com/BhavyeMathur/goopylib/wiki
@@ -32,16 +37,18 @@ key_words =
3237
2D Graphics
3338
Python GUI
3439
Game Creator
35-
Graphics Library'
40+
Graphics Library
3641

3742
[options]
3843
package_dir =
39-
= goopylib
44+
= .
4045
packages = find:
4146
python_requires = >=3.6
4247

48+
include_package_data = True
49+
4350
install_requires =
4451
pillow
4552

4653
[options.packages.find]
47-
where = goopylib
54+
where = .

setup.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
from setuptools import setup
2+
3+
"""
4+
pip install twine
5+
pip install build
6+
7+
CREATING RELEASES-------------------------------------------------------------------------------------------------------
8+
- Update README.md version number
9+
- Update setup.cfg version number
10+
- Update goopylib/__init__.py __version__ variable
11+
- Run setup_extensions.py and build goopylib .pyd C extensions
12+
- Test all Example python files, run goopylib_tests.py and test functions on Windows
13+
- Run goopylib_tests.py countlines() function and update README.md with line count
14+
- Push to GitHub, pull from MacOS computer
15+
- Run setup_extensions.py and build goopylib .so C extensions
16+
- Test all Example python files, run goopylib_tests.py and test functions on MacOS
17+
- Push files to GitHub
18+
- Create GitHub Release
19+
- Update download_url in setup.cfg
20+
- Build goopylib Release
21+
- Upload goopylib Release on TestPyPi
22+
- Install and check from TestPyPi
23+
- Upload goopylib Release on PyPi
24+
- Test goopylib installation on Windows
25+
- Test goopylib installation on MacOS
26+
27+
To create source distribution:
28+
1. python -m build --sdist
29+
2. python setup.py sdist
30+
31+
To create (platform) wheel:
32+
1. python -m build --wheel
33+
2. python setup.py bdist_wheel
34+
35+
To create release (wheel and source distribution):
36+
1. python -m build
37+
2. python setup.py sdist bdist_wheel
38+
39+
To check release: twine check dist/*
40+
To upload test release: twine upload --repository testpypi dist/*
41+
To install test release: pip install -i https://test.pypi.org/simple/ goopylib==version
42+
43+
To upload release: twine upload dist/*
44+
To install release: pip install goopylib==version
45+
46+
Username: BhavyeMathur
47+
"""
48+
49+
setup(package_dir={':maths': 'goopylib/maths', ":objects": 'goopylib/objects', ":applications": 'goopylib/applications',
50+
":sound": 'goopylib/sound', ":physics": 'goopylib/physics'})

0 commit comments

Comments
 (0)