Skip to content

Commit

Permalink
test: printing data from package.json file to check if working
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsanima committed Jun 2, 2021
1 parent 54f990e commit 5359db7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/data_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import json

# Load data from package.json file.
with open("package.json") as dt:
data_package = json.load(dt)

name=data_package["name"]
version=data_package["version"]
author=data_package["author"]["name"]
author_email=data_package["author"]["email"]
description=data_package["description"]
url=data_package["homepage"]
project_urls=data_package["project_urls"]
classifiers=data_package["classifiers"]
license=data_package["license"]
extras_require=data_package["extra_require"]
keywords=data_package["keywords"]

print(name)
print(version)
print(author)
print(author_email)
print(description)
print(url)
print(project_urls)
print(classifiers)
print(license)
print(extras_require)
print(keywords)

0 comments on commit 5359db7

Please sign in to comment.