From: "Vikraman Choudhury" <vikraman.choudhury@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoostats:master commit in: /, client/gentoostats/, client/
Date: Fri, 17 Jun 2011 19:36:47 +0000 (UTC) [thread overview]
Message-ID: <784f17558cb2b4528f94c1762c18e73f667123ec.vikraman@gentoo> (raw)
commit: 784f17558cb2b4528f94c1762c18e73f667123ec
Author: Vikraman Choudhury <vikraman.choudhury <AT> gmail <DOT> com>
AuthorDate: Fri Jun 17 19:00:59 2011 +0000
Commit: Vikraman Choudhury <vikraman.choudhury <AT> gmail <DOT> com>
CommitDate: Fri Jun 17 19:00:59 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoostats.git;a=commit;h=784f1755
fix setup.py
---
client/{send.py => gentoostats-send} | 2 +-
client/{ => gentoostats}/__init__.py | 0
client/{ => gentoostats}/dbapi.py | 1 +
client/{ => gentoostats}/environment.py | 0
client/{ => gentoostats}/metadata.py | 2 +-
client/{ => gentoostats}/packages.py | 2 +-
client/{ => gentoostats}/payload.py | 6 +++---
setup.py => client/setup.py | 8 ++++----
8 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/client/send.py b/client/gentoostats-send
similarity index 96%
rename from client/send.py
rename to client/gentoostats-send
index 1420a7d..d749c2a 100755
--- a/client/send.py
+++ b/client/gentoostats-send
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-from payload import Payload
+from gentoostats.payload import Payload
import json
import urllib, httplib
diff --git a/client/__init__.py b/client/gentoostats/__init__.py
similarity index 100%
rename from client/__init__.py
rename to client/gentoostats/__init__.py
diff --git a/client/dbapi.py b/client/gentoostats/dbapi.py
similarity index 99%
rename from client/dbapi.py
rename to client/gentoostats/dbapi.py
index d5d65fa..10d92d9 100644
--- a/client/dbapi.py
+++ b/client/gentoostats/dbapi.py
@@ -1,3 +1,4 @@
+
import portage
PORTDB = portage.db[portage.root]["porttree"].dbapi
diff --git a/client/environment.py b/client/gentoostats/environment.py
similarity index 100%
rename from client/environment.py
rename to client/gentoostats/environment.py
diff --git a/client/metadata.py b/client/gentoostats/metadata.py
similarity index 96%
rename from client/metadata.py
rename to client/gentoostats/metadata.py
index 0b6a751..224fbfd 100644
--- a/client/metadata.py
+++ b/client/gentoostats/metadata.py
@@ -1,6 +1,6 @@
import portage
-from dbapi import VARDB
+from gentoostats.dbapi import VARDB
from gentoolkit.enalyze.lib import FlagAnalyzer
from gentoolkit.enalyze.lib import KeywordAnalyser
diff --git a/client/packages.py b/client/gentoostats/packages.py
similarity index 90%
rename from client/packages.py
rename to client/gentoostats/packages.py
index 7f9ca35..2c9f48d 100644
--- a/client/packages.py
+++ b/client/gentoostats/packages.py
@@ -1,7 +1,7 @@
import logging
import portage
-from dbapi import VARDB
+from gentoostats.dbapi import VARDB
class Packages(object):
diff --git a/client/payload.py b/client/gentoostats/payload.py
similarity index 90%
rename from client/payload.py
rename to client/gentoostats/payload.py
index 92fb851..9553512 100644
--- a/client/payload.py
+++ b/client/gentoostats/payload.py
@@ -1,8 +1,8 @@
import pprint
-from environment import Environment
-from packages import Packages
-from metadata import Metadata
+from gentoostats.environment import Environment
+from gentoostats.packages import Packages
+from gentoostats.metadata import Metadata
class Payload(object):
diff --git a/setup.py b/client/setup.py
similarity index 69%
rename from setup.py
rename to client/setup.py
index 421da82..133274c 100644
--- a/setup.py
+++ b/client/setup.py
@@ -1,14 +1,14 @@
-import os
from setuptools import setup
setup(
- name = "Gentoostats",
- version = "0.1",
+ name = "gentoostats",
+ version = "9999",
author = "Vikraman Choudhury",
author_email = "vikraman.choudhury@gmail.com",
description = "Package statistics client",
license = "GPLv3",
url = "http://soc.dev.gentoo/org/gentoostats",
- packages = ['client'],
+ packages = ['gentoostats'],
+ scripts = ['gentoostats-send']
)
reply other threads:[~2011-06-17 19:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=784f17558cb2b4528f94c1762c18e73f667123ec.vikraman@gentoo \
--to=vikraman.choudhury@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox