added _version.py
This commit is contained in:
4
osxphotos/_version.py
Normal file
4
osxphotos/_version.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
""" version info """
|
||||||
|
|
||||||
|
__version__ = "0.14.13"
|
||||||
|
|
||||||
19
setup.py
19
setup.py
@@ -26,19 +26,22 @@
|
|||||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
# from distutils.core import setup
|
import os
|
||||||
from setuptools import setup, find_packages
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
# read the contents of README file
|
this_directory = os.path.abspath(os.path.dirname(__file__))
|
||||||
from os import path
|
with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f:
|
||||||
|
|
||||||
this_directory = path.abspath(path.dirname(__file__))
|
|
||||||
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
|
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
|
about = {}
|
||||||
|
with open(
|
||||||
|
os.path.join(this_directory, "osxphotos", "_version.py"), mode="r", encoding="utf-8"
|
||||||
|
) as f:
|
||||||
|
exec(f.read(), about)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="osxphotos",
|
name="osxphotos",
|
||||||
version="0.14.12",
|
version=about["__version__"],
|
||||||
description="Manipulate (read-only) Apple's Photos app library on Mac OS X",
|
description="Manipulate (read-only) Apple's Photos app library on Mac OS X",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|||||||
Reference in New Issue
Block a user