-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from hhannine/dev
Merge dev at 1.2.0 to master - split code into smaller modules - xdg_config_home compliance for linux - bezel correction feature rework & bugfix - KDE scripting improvements - KDE+XFCE quick switch improvement - ready package for PyPI + installation with .desktop & icon - windows installer scripting & release tools - bug fixes
- Loading branch information
Showing
38 changed files
with
3,597 additions
and
2,694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
__pycache__/ | ||
superpaper/__pycache__ | ||
build/ | ||
dist/ | ||
releases/ | ||
superpaper.egg-info/ | ||
*.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include resources/superpaper.png | ||
include resources/test.png | ||
include profiles/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
""" | ||
Simple wrapper that makes the module structure of Superpaper | ||
compatible with PyInstaller builds. | ||
""" | ||
|
||
from superpaper.superpaper import main | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Some notes on building and uploading PyPI packages | ||
|
||
## Building a wheel / sdist | ||
python3 setup.py sdist bdist_wheel | ||
|
||
## Checking that twine (pypi tool) passes the built package | ||
twine check dist/* | ||
|
||
## Uploading to PyPI | ||
python3 -m twine upload dist/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Pillow>=6.0.0 | ||
screeninfo>=0.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Pillow>=6.0.0 | ||
screeninfo>=0.6.1 | ||
system_hotkey>=1.0 | ||
xcffib>=0.8.0 | ||
xpybutil>=0.0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Pillow>=6.0.0 | ||
screeninfo>=0.6.1 | ||
wxPython>=4.0.4 | ||
system_hotkey>=1.0 | ||
pywin32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import os | ||
import platform | ||
import sys | ||
from setuptools import setup | ||
|
||
|
||
def read_version(): | ||
with open("superpaper/__version__.py") as verfile: | ||
verlines = verfile.readlines() | ||
for line in verlines: | ||
if "__version__" in line: | ||
ver_str = line.split("=")[1].strip().replace('"',"") | ||
print(ver_str) | ||
return ver_str | ||
print("Version not found, exitting install.") | ||
sys.exit(1) | ||
|
||
|
||
def test_import(packaname, humanname): | ||
try: | ||
__import__(packaname) | ||
except ImportError: | ||
print("{} import failed; refer to the install instructions.".format(humanname)) | ||
sys.exit(1) | ||
|
||
if __name__ == "__main__": | ||
test_import("wx", "wxPython") | ||
|
||
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md'), | ||
encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name="superpaper", | ||
version=read_version(), | ||
author="Henri Hänninen", | ||
description="Cross-platform wallpaper manager that focuses on " | ||
"multi-monitor support. Features include ppi corrections, " | ||
"keyboard shortcuts, slideshow.", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/hhannine/superpaper", | ||
|
||
classifiers=[ | ||
# "Development Status :: 4 - Beta", | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: X11 Applications", | ||
# "Environment :: Win32", | ||
"Intended Audience :: End Users/Desktop", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: POSIX :: Linux", | ||
# "Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python :: 3.5", | ||
"Topic :: Utilities", | ||
], | ||
keywords="dual-monitor multi-monitor wallpaper background manager", | ||
license="MIT", | ||
|
||
# python_requires="~=3.5", | ||
install_requires=[ | ||
"Pillow>=6.0.0", | ||
"screeninfo>=0.6.1", | ||
"system_hotkey>=1.0.3", | ||
"xcffib>=0.8.0", | ||
"xpybutil>=0.0.5" | ||
], | ||
packages=["superpaper"], | ||
entry_points={ | ||
"console_scripts": ["superpaper = superpaper.superpaper:main"] | ||
# "gui_scripts": ["superpaper = superpaper.superpaper:main"] # for possible future windows install support. | ||
}, | ||
package_data={ | ||
"superpaper": ["resources/superpaper.png", | ||
"resources/test.png", | ||
"profiles/example.profile", | ||
"profiles/example_multi.profile" | ||
] | ||
}, | ||
data_files=[ | ||
("share/applications", ["superpaper/resources/superpaper.desktop"]), | ||
("share/icons/hicolor/256x256/apps", ["superpaper/resources/superpaper.png"]), | ||
] | ||
|
||
) |
Oops, something went wrong.