mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 09:20:52 +01:00
Merge pull request #111 from squidfunk/chore/centralize-package-specs
Load package specs in setup.py from package.json
This commit is contained in:
commit
c101debc8c
21
setup.py
21
setup.py
@ -18,18 +18,23 @@
|
|||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
|
import json
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
# Load package.json contents
|
||||||
|
with open("package.json") as data:
|
||||||
|
package = json.load(data)
|
||||||
|
|
||||||
# Package description
|
# Package description
|
||||||
setup(
|
setup(
|
||||||
name = "mkdocs-material",
|
name = package["name"],
|
||||||
version = "1.0.1",
|
version = package["version"],
|
||||||
url = "http://squidfunk.github.io/mkdocs-material/",
|
url = package["homepage"],
|
||||||
license = "MIT",
|
license = package["license"],
|
||||||
description = "A Material Design theme for MkDocs",
|
description = package["description"],
|
||||||
author = "Martin Donath",
|
author = package["author"]["name"],
|
||||||
author_email = "martin.donath@squidfunk.com",
|
author_email = package["author"]["email"],
|
||||||
keywords = ["mkdocs", "documentation", "theme"],
|
keywords = package["keywords"],
|
||||||
packages = find_packages(),
|
packages = find_packages(),
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
entry_points = {
|
entry_points = {
|
||||||
|
Loading…
Reference in New Issue
Block a user