Browse Source

use setuptools_scm to set version

Fabian Peter Hammerle 4 years ago
parent
commit
d3722b47cf
2 changed files with 6 additions and 7 deletions
  1. 1 1
      LICENSE.txt
  2. 5 6
      setup.py

+ 1 - 1
LICENSE.txt

@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2016-2017 Fabian Peter Hammerle
+Copyright (c) 2016-2019 Fabian Peter Hammerle
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal

+ 5 - 6
setup.py

@@ -1,13 +1,11 @@
-#!/usr/bin/env python3
-
-from setuptools import setup
-
 import glob
 
-setup(
+import setuptools
+
+setuptools.setup(
     name="tooncher",
+    use_scm_version=True,
     packages=["tooncher"],
-    version="0.4.0",
     description="automates toontown rewritten's login process",
     author="Fabian Peter Hammerle",
     author_email="fabian.hammerle@gmail.com",
@@ -17,5 +15,6 @@ setup(
     classifiers=[],
     scripts=glob.glob("scripts/*"),
     install_requires=["pyyaml"],
+    setup_requires=["setuptools_scm"],
     tests_require=["pytest"],
 )